//package co.yixiang.modules.shop.web.controller;
//
//import co.yixiang.modules.shop.entity.YxSalesCommissionDetail;
//import co.yixiang.modules.shop.service.YxSalesCommissionDetailService;
//import co.yixiang.modules.shop.web.param.YxSalesCommissionDetailQueryParam;
//import co.yixiang.modules.shop.web.vo.YxSalesCommissionDetailQueryVo;
//import co.yixiang.common.web.controller.BaseController;
//import co.yixiang.common.api.ApiResult;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import lombok.RequiredArgsConstructor;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.validation.Valid;
//
//import co.yixiang.common.web.vo.Paging;
//import co.yixiang.common.web.param.IdParam;
//
///**
// * <p>
// * 业务员提成明细表 前端控制器
// * </p>
// *
// * @author hisen
// * @since 2020-06-18
// */
//@Slf4j
//@RestController
//@RequiredArgsConstructor(onConstructor = @__(@Autowired))
//@Api(value = "", tags = "投资端:调查问卷模块", description = "调查问卷模块")
//public class YxSalesCommissionDetailController extends BaseController {
//
//    @Autowired
//    private YxSalesCommissionDetailService yxSalesCommissionDetailService;
//
//    /**
//    * 添加业务员提成明细表
//    */
//    @PostMapping("/add")
//    @ApiOperation(value = "添加YxSalesCommissionDetail对象",notes = "添加业务员提成明细表",response = ApiResult.class)
//    public ApiResult<Boolean> addYxSalesCommissionDetail(@Valid @RequestBody YxSalesCommissionDetail yxSalesCommissionDetail) throws Exception{
//        boolean flag = yxSalesCommissionDetailService.save(yxSalesCommissionDetail);
//        return ApiResult.result(flag);
//    }
//
//    /**
//    * 修改业务员提成明细表
//    */
//    @PostMapping("/update")
//    @ApiOperation(value = "修改YxSalesCommissionDetail对象",notes = "修改业务员提成明细表",response = ApiResult.class)
//    public ApiResult<Boolean> updateYxSalesCommissionDetail(@Valid @RequestBody YxSalesCommissionDetail yxSalesCommissionDetail) throws Exception{
//        boolean flag = yxSalesCommissionDetailService.updateById(yxSalesCommissionDetail);
//        return ApiResult.result(flag);
//    }
//
//    /**
//    * 删除业务员提成明细表
//    */
//    @PostMapping("/delete")
//    @ApiOperation(value = "删除YxSalesCommissionDetail对象",notes = "删除业务员提成明细表",response = ApiResult.class)
//    public ApiResult<Boolean> deleteYxSalesCommissionDetail(@Valid @RequestBody IdParam idParam) throws Exception{
//        boolean flag = yxSalesCommissionDetailService.removeById(idParam.getId());
//        return ApiResult.result(flag);
//    }
//
//    /**
//    * 获取业务员提成明细表
//    */
//    @PostMapping("/info")
//    @ApiOperation(value = "获取YxSalesCommissionDetail对象详情",notes = "查看业务员提成明细表",response = YxSalesCommissionDetailQueryVo.class)
//    public ApiResult<YxSalesCommissionDetailQueryVo> getYxSalesCommissionDetail(@Valid @RequestBody IdParam idParam) throws Exception{
//        YxSalesCommissionDetailQueryVo yxSalesCommissionDetailQueryVo = yxSalesCommissionDetailService.getYxSalesCommissionDetailById(idParam.getId());
//        return ApiResult.ok(yxSalesCommissionDetailQueryVo);
//    }
//
//    /**
//     * 业务员提成明细表分页列表
//     */
//    @PostMapping("/getPageList")
//    @ApiOperation(value = "获取YxSalesCommissionDetail分页列表",notes = "业务员提成明细表分页列表",response = YxSalesCommissionDetailQueryVo.class)
//    public ApiResult<Paging<YxSalesCommissionDetailQueryVo>> getYxSalesCommissionDetailPageList(@Valid @RequestBody(required = false) YxSalesCommissionDetailQueryParam yxSalesCommissionDetailQueryParam) throws Exception{
//        Paging<YxSalesCommissionDetailQueryVo> paging = yxSalesCommissionDetailService.getYxSalesCommissionDetailPageList(yxSalesCommissionDetailQueryParam);
//        return ApiResult.ok(paging);
//    }
//
//}
//
